package com.mall.book.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.book.entity.po.CategoryInfo;
import com.mall.book.mappers.CategoryInfoMapper;
import com.mall.book.service.CategoryInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;

/**
 * Created by Dizziness on 2022/3/22 20:43
 */
@Service
public class CategoryInfoServiceImpl implements CategoryInfoService {
    @Autowired
    CategoryInfoMapper categoryInfoMapper;

    @Override
    public boolean saveBatch(Collection<CategoryInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<CategoryInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<CategoryInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(CategoryInfo entity) {
        return false;
    }

    @Override
    public CategoryInfo getOne(Wrapper<CategoryInfo> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<CategoryInfo> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<CategoryInfo> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<CategoryInfo> getBaseMapper() {
        return categoryInfoMapper;
    }

    @Override
    public Class<CategoryInfo> getEntityClass() {
        return CategoryInfo.class;
    }


    @Override
    public Collection<CategoryInfo> getByMap(HashMap<String, Object> queryMap) {
        return categoryInfoMapper.selectByMap(queryMap);
    }

}
